#include <iostream>
#include <unistd.h>
#include "timer.h"
using namespace std;

void test()
{
    std::cout << "hello world" << std::endl;
}

int main(void)
{
    Timer t(-1);
    t.Start(1000, test);

    Timer t2;
    t2.Start(1500,[](){
        std::cout << "嗨害嗨" << std::endl;
    });

    sleep(10);

    return 0;
}